define(function (require) {
    var _common = require('common/main');
    var _config = require('common/config');
    var _send = _common.sendRequest;
    function init() {
    	var _param = {};
    	_send("zone/listPlace.ajax",_param,_list_place_render);
    	
    }
    function _list_place_render(data)
    {
    	var _html = '';
    	var _len = data.length;
    	for (var i = 0; i < _len; i++) 
    	{
			var _item = data[i];
			_html += '<tr>';
			_html += '<td width="15%">';
			_html += _item.id;
			_html += '</td>';
			
			_html += '<td width="15%">';
			_html += _item.pickName;
			_html += '</td>';
			
			_html += '<td width="15%">';
			_html += _item.regionName;
			_html += '</td>';
			
			_html += '<td width="15%">';
			_html += _item.busName;
			_html += '</td>';
			
			_html += '<td width="10%">';
			_html += _item.pickstart;
			_html += '</td>';

			_html += '<td width="10%">';
			_html += _item.pickend;
			_html += '</td>';
			
			_html += '<td width="10%">';
			_html += _item.state;
			_html += '</td>';
			
			_html += '<td width="10%">';
			_html += _item.sequence;
			_html += '</td>';
			
			_html += '<td width="10%">';
			_html += '<a href="javascript:_place_mod(';
			_html += _item.id;
			_html += ');">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;';
			
			_html += '<a href="javascript:_place_del(';
			_html += _item.id;
			_html += ');">删除</a>';
			_html += '</td>';
			_html += '</tr>'
    	}
    	$('#zone_place_list').html(_html);
    }
    
    return { init: init };
});